from PyQt4.QtCore import QString
from PyQt4.QtGui import QLabel, QLineEdit, QHBoxLayout
from PyQt4.QtGui import QHBoxLayout


class InputBox(QHBoxLayout):
    def __init__(self, text=QString(), parent=None):
        super(InputBox, self).__init__(None)
        self.label = QLabel(text)
        self.edit = QLineEdit()
        self.addWidget(self.label)
        self.addWidget(self.edit)